Optimal. Leaf size=314 \[ -\frac {4 (a-b) b \sqrt {a+b} \sqrt {\cos (c+d x)} \csc (c+d x) E\left (\text {ArcSin}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{3 a^3 d \sqrt {\sec (c+d x)}}+\frac {2 \sqrt {a+b} (a+2 b) \sqrt {\cos (c+d x)} \csc (c+d x) F\left (\text {ArcSin}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{3 a^2 d \sqrt {\sec (c+d x)}}+\frac {2 \sqrt {a+b \cos (c+d x)} \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 a d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.32, antiderivative size = 314, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {4307, 2881,
3077, 2895, 3073} \begin {gather*} -\frac {4 b (a-b) \sqrt {a+b} \sqrt {\cos (c+d x)} \csc (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} E\left (\text {ArcSin}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right )}{3 a^3 d \sqrt {\sec (c+d x)}}+\frac {2 \sqrt {a+b} (a+2 b) \sqrt {\cos (c+d x)} \csc (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} F\left (\text {ArcSin}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right )}{3 a^2 d \sqrt {\sec (c+d x)}}+\frac {2 \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+b \cos (c+d x)}}{3 a d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2881
Rule 2895
Rule 3073
Rule 3077
Rule 4307
Rubi steps
\begin {align*} \int \frac {\sec ^{\frac {5}{2}}(c+d x)}{\sqrt {a+b \cos (c+d x)}} \, dx &=\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\cos ^{\frac {5}{2}}(c+d x) \sqrt {a+b \cos (c+d x)}} \, dx\\ &=\frac {2 \sqrt {a+b \cos (c+d x)} \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 a d}+\frac {\left (2 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {-b+\frac {1}{2} a \cos (c+d x)}{\cos ^{\frac {3}{2}}(c+d x) \sqrt {a+b \cos (c+d x)}} \, dx}{3 a}\\ &=\frac {2 \sqrt {a+b \cos (c+d x)} \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 a d}-\frac {\left (2 b \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1+\cos (c+d x)}{\cos ^{\frac {3}{2}}(c+d x) \sqrt {a+b \cos (c+d x)}} \, dx}{3 a}+\frac {\left ((a+2 b) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)}} \, dx}{3 a}\\ &=-\frac {4 (a-b) b \sqrt {a+b} \sqrt {\cos (c+d x)} \csc (c+d x) E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{3 a^3 d \sqrt {\sec (c+d x)}}+\frac {2 \sqrt {a+b} (a+2 b) \sqrt {\cos (c+d x)} \csc (c+d x) F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{3 a^2 d \sqrt {\sec (c+d x)}}+\frac {2 \sqrt {a+b \cos (c+d x)} \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 a d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 13.11, size = 322, normalized size = 1.03 \begin {gather*} \frac {4 \sqrt {\cos ^2\left (\frac {1}{2} (c+d x)\right ) \sec (c+d x)} \left (2 b (a+b) \sqrt {\frac {\cos (c+d x)}{1+\cos (c+d x)}} \sqrt {\frac {a+b \cos (c+d x)}{(a+b) (1+\cos (c+d x))}} E\left (\text {ArcSin}\left (\tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {-a+b}{a+b}\right )+a (a-2 b) \sqrt {\frac {\cos (c+d x)}{1+\cos (c+d x)}} \sqrt {\frac {a+b \cos (c+d x)}{(a+b) (1+\cos (c+d x))}} F\left (\text {ArcSin}\left (\tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {-a+b}{a+b}\right )+b \cos (c+d x) (a+b \cos (c+d x)) \sec ^2\left (\frac {1}{2} (c+d x)\right ) \tan \left (\frac {1}{2} (c+d x)\right )\right )}{3 a^2 d \sqrt {a+b \cos (c+d x)} \sqrt {\sec ^2\left (\frac {1}{2} (c+d x)\right )}}+\frac {\sqrt {a+b \cos (c+d x)} \sqrt {\sec (c+d x)} \left (-\frac {4 b \sin (c+d x)}{3 a^2}+\frac {2 \tan (c+d x)}{3 a}\right )}{d} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(890\) vs.
\(2(280)=560\).
time = 0.32, size = 891, normalized size = 2.84
method | result | size |
default | \(\text {Expression too large to display}\) | \(891\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{5/2}}{\sqrt {a+b\,\cos \left (c+d\,x\right )}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________